// 登录模块的后台数据验证
// 定义验证规则
const joi = require('joi');

const username = joi.string().alphanum().min(3).max(30).required();
const password = joi.string().pattern(new RegExp('^[a-zA-Z0-9]{6,30}$')).required();
exports.login_schema = {
  body: {
    username,
    password,
  },
};
